package com.youlu.campus.entity.ca;

import com.youlu.campus.base.base.EntityBase;
import lombok.Data;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author : [dengbo]
 * @className : UserSubActivity
 * @description : [用户订阅活动]
 * @createTime : [2022/10/8 14:21]
 */
@Document(collection = "user_sub_activity_record")
@CompoundIndexes({
        @CompoundIndex(name = "uid_aid", def = "{'activityId':1,'userId':1}")
})
@Data
public class UserSubActivity extends EntityBase {
    private String activityId;
    private String userId;
    private Integer subStatus;
}
